<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <style>
    #box {
        width: 40%;
        margin-left: auto;
        margin-right: auto;
    }
    
    #hd span {
        background-color: gray;
    }

    #hd .current {
        background-color: aqua;
    }
    
    </style>
    <title>Tab</title>
</head>
<body>
    <div class="box" id="box">

        <div id="hd">
            <span class="current">HOME</span>
            <span>ABOUT</span>
            <span>CONTACT</span>
            <span>OTHERS</span>
        </div>
    </div>
</body>
</html>